
<% var html={ %>
<blockquote class="layui-elem-quote zq-table-head">
    农机
</blockquote>
                <div class='row zq-row'>
                        <form name="wnMachine_form" id="wnMachine_form" class='form-inline'>
                            <div class='form-group col-md-4 col-xs-6' style='margin-top: 10px;'>
 <label title='车牌号'  >车牌号：</label>
 <input  onkeyup='wnMachineConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='licensePlateNumber' name='licensePlateNumber' placeholder=''>
 </div>
                            <div class='form-group col-md-4 col-xs-6' style='margin-top: 10px;'>
                                <label title='车牌号'  >所属农场：</label>
                                <select class="form-control" id="farmId"
                                        name="farmId" check-type="required">
                                </select>
                            </div>
                            <div align="center" class="form-group col-md-12 zq-table-query">
                                <button type='button' class='btn btn-default' id='wnMachineQuerySearch'>查询</button>
                                <button type='button' class='btn btn-default' id='wnMachineReset'>重置</button>
                            </div>
                        </form>
                </div>
                 <div id="wnMachineToolbar" class="btn-group">
                              <button type="button" class="btn btn-default" onclick="var t = consoleOpenWindow('wnMachine','${ctxPath}/console/wn_machine/add','新增'); layer.full(t);">
                                  <i class="glyphicon glyphicon-plus"></i>
                              </button>
                              <button type="button" class="btn btn-default" onclick='wnMachineConsoleGrid.delete("id","${ctxPath}/console/wn_machine/delete");'>
                                  <i class="glyphicon glyphicon-trash"></i>
                              </button>
                     <button type="button" class="btn btn-success" id="makeQrcode" >
                         生成二维码图片
                     </button>
                     <button type="button" class="btn btn-success" id="downLoadZip" >
                         下载二维码压缩包
                     </button>
                 </div>
                     <div class='row zq-row'>
                              <div class='col-md-12'>
                                  <table id="wnMachine" data-toggle="table"
                                         data-url="${ctxPath}/console/wn_machine/json"
                                         data-pagination="true"
                                         data-query-params="wnMachineLoadParam"
                                         method="post"
                                         data-side-pagination="server"
                                         data-show-refresh="true"
                                         data-show-toggle="true"
                                         data-pagination-loop="false"
                                         data-show-columns="true"
                                         data-toolbar="#wnMachineToolbar">
                                      <thead>
                                           <th data-checkbox="true"></th>
                                            <th data-field='id' data-visible='false'>ID</th>
                                           <th data-sortable='false' data-field='userName'>机手</th>
                                           <th data-sortable='false' data-field='userPhoneNumber'>机手电话</th>
  <th data-sortable='false' data-field='licensePlateNumber'>车牌号</th>
                                          <th data-sortable='false' data-field='deviceNumberGt06'>定位终端编号</th>
                                           <th data-sortable='false' data-field='deviceNumberAuto'>自动驾驶设备</th>
                                          <th data-sortable='false' data-field='machineTool'>挂载机具</th>
                                           <th data-sortable='false' data-field='machineToolType'>机具类型</th>
                                           <th data-sortable='false' data-field='machineToolFk'>机具幅宽</th>
  <th data-sortable='false' data-field='brand'>品牌</th>
  <th data-sortable='false' data-field='farmName'>所属农场</th>
  <th data-field='id' data-formatter='wnMachineTableOperate'>操作</th>
 
                                      </tr>
                                      </thead>
                                  </table>
                              </div>
                     </div>
<% }; %>
<% var js={ %>
<script type='text/javascript' src='/view/console/wnMachine/wnMachineTable.js'></script>
<script type="text/javascript">
    $(function($) {
        $("#makeQrcode").click(function () {
            alert("开始生成！请点击二维码压缩包下载");
            $.post("/console/wn_machine/qrcode/make/",function (data) {

            });
        });
        $("#downLoadZip").click(function () {
            window.open("/console/wn_machine/qrcode/make/zip","_blank");
        });
    });
</script>
<% }; %>

<% layout("/view/console/skins/skin_2/layout.html", {js:js,html:html}) {} %>